package com.amigo.online.message.mybatisbean;

import java.io.Serializable;

/**
 * @author 
 */
public class GroupTbl implements Serializable {
    private Long id;

    /**
     * 群主ID
     */
    private Long userId;

    /**
     * 名称
     */
    private String name;

    /**
     * 头像
     */
    private String avatar;

    private Integer country;

    private Integer province;

    private Integer city;

    /**
     * 定位的地址name
     */
    private String addressName;

    private String address;

    private String longitude;

    private String latitude;

    private Integer category;

    /**
     * 状态：1为正常，0为禁用
     */
    private Boolean status;

    /**
     * 审核：1为待审核，0为审核不通过，2为通过
     */
    private Boolean checked;

    /**
     * 是否隐身(附近群不可见) 1-开启隐私 0-不开启
     */
    private Boolean invisible;

    private String checkedInfo;

    private Long checkedTime;

    /**
     * 加群是否需要审核：0为不需要，1为需要
     */
    private Boolean examine;

    /**
     * 类型:1为普通群，2为VIP群，3为高级群
     */
    private Boolean type;

    private String keywords;

    /**
     * 解散
     */
    private Boolean disbanded;

    /**
     * 解散时间
     */
    private Long disbandedTime;

    private Long createdTime;

    private Long updatedTime;

    private Long createdUserId;

    /**
     * 介绍
     */
    private String introduction;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getCountry() {
        return country;
    }

    public void setCountry(Integer country) {
        this.country = country;
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public String getAddressName() {
        return addressName;
    }

    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Boolean getInvisible() {
        return invisible;
    }

    public void setInvisible(Boolean invisible) {
        this.invisible = invisible;
    }

    public String getCheckedInfo() {
        return checkedInfo;
    }

    public void setCheckedInfo(String checkedInfo) {
        this.checkedInfo = checkedInfo;
    }

    public Long getCheckedTime() {
        return checkedTime;
    }

    public void setCheckedTime(Long checkedTime) {
        this.checkedTime = checkedTime;
    }

    public Boolean getExamine() {
        return examine;
    }

    public void setExamine(Boolean examine) {
        this.examine = examine;
    }

    public Boolean getType() {
        return type;
    }

    public void setType(Boolean type) {
        this.type = type;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public Boolean getDisbanded() {
        return disbanded;
    }

    public void setDisbanded(Boolean disbanded) {
        this.disbanded = disbanded;
    }

    public Long getDisbandedTime() {
        return disbandedTime;
    }

    public void setDisbandedTime(Long disbandedTime) {
        this.disbandedTime = disbandedTime;
    }

    public Long getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Long createdTime) {
        this.createdTime = createdTime;
    }

    public Long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Long updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Long getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(Long createdUserId) {
        this.createdUserId = createdUserId;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GroupTbl other = (GroupTbl) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
            && (this.getCountry() == null ? other.getCountry() == null : this.getCountry().equals(other.getCountry()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getAddressName() == null ? other.getAddressName() == null : this.getAddressName().equals(other.getAddressName()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getCategory() == null ? other.getCategory() == null : this.getCategory().equals(other.getCategory()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getChecked() == null ? other.getChecked() == null : this.getChecked().equals(other.getChecked()))
            && (this.getInvisible() == null ? other.getInvisible() == null : this.getInvisible().equals(other.getInvisible()))
            && (this.getCheckedInfo() == null ? other.getCheckedInfo() == null : this.getCheckedInfo().equals(other.getCheckedInfo()))
            && (this.getCheckedTime() == null ? other.getCheckedTime() == null : this.getCheckedTime().equals(other.getCheckedTime()))
            && (this.getExamine() == null ? other.getExamine() == null : this.getExamine().equals(other.getExamine()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getKeywords() == null ? other.getKeywords() == null : this.getKeywords().equals(other.getKeywords()))
            && (this.getDisbanded() == null ? other.getDisbanded() == null : this.getDisbanded().equals(other.getDisbanded()))
            && (this.getDisbandedTime() == null ? other.getDisbandedTime() == null : this.getDisbandedTime().equals(other.getDisbandedTime()))
            && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
            && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()))
            && (this.getCreatedUserId() == null ? other.getCreatedUserId() == null : this.getCreatedUserId().equals(other.getCreatedUserId()))
            && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
        result = prime * result + ((getCountry() == null) ? 0 : getCountry().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getAddressName() == null) ? 0 : getAddressName().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getCategory() == null) ? 0 : getCategory().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getChecked() == null) ? 0 : getChecked().hashCode());
        result = prime * result + ((getInvisible() == null) ? 0 : getInvisible().hashCode());
        result = prime * result + ((getCheckedInfo() == null) ? 0 : getCheckedInfo().hashCode());
        result = prime * result + ((getCheckedTime() == null) ? 0 : getCheckedTime().hashCode());
        result = prime * result + ((getExamine() == null) ? 0 : getExamine().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getKeywords() == null) ? 0 : getKeywords().hashCode());
        result = prime * result + ((getDisbanded() == null) ? 0 : getDisbanded().hashCode());
        result = prime * result + ((getDisbandedTime() == null) ? 0 : getDisbandedTime().hashCode());
        result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
        result = prime * result + ((getCreatedUserId() == null) ? 0 : getCreatedUserId().hashCode());
        result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", name=").append(name);
        sb.append(", avatar=").append(avatar);
        sb.append(", country=").append(country);
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", addressName=").append(addressName);
        sb.append(", address=").append(address);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", category=").append(category);
        sb.append(", status=").append(status);
        sb.append(", checked=").append(checked);
        sb.append(", invisible=").append(invisible);
        sb.append(", checkedInfo=").append(checkedInfo);
        sb.append(", checkedTime=").append(checkedTime);
        sb.append(", examine=").append(examine);
        sb.append(", type=").append(type);
        sb.append(", keywords=").append(keywords);
        sb.append(", disbanded=").append(disbanded);
        sb.append(", disbandedTime=").append(disbandedTime);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", createdUserId=").append(createdUserId);
        sb.append(", introduction=").append(introduction);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}